{% extends 'group_base.html' %}

{% block theme %}
所有群组
{% endblock %}

{% block topic_content %}

{% for group in all_groups %}
<div class="ul" style="margin-bottom:6px;"></div>
<div class="clist2">
	<a href="/group/gr/{{ group.id }}/">
		<img src="{{group.logo}}" align="left" style="margin:0 20px 0 10px;" alt={{group.name}}>
	</a>
	<div class="pl" style="float:right;">
		创建于{{ group.create_datetime|date:"Y-m-j" }}
		&nbsp;
		<a href="/group/members/{{group.id}}/">{{ group.members.all|length }}人</a>
	</div>
	<span class="pl2" style="font-size: 15px;">
		<a href="/group/gr/{{ group.id }}/">{{ group.name }}</a>
		&nbsp;&nbsp;&nbsp;&nbsp;组长：<a href="">{{ group.administrators.all.0.name }}</a>
	</span>
	<br>
	<div class="pl">{{ group.description|safe }}</div>
</div>
<br clear="all">
{% endfor %}

{% endblock %}

{% block aside %}
<!--
<h2>Dlib群组搜索 ...... </h2>
<div class="indent">
	<div class="infobox">
		<div class="ex1">
		<span></span>
		</div>
		<div class="bd">
			<form id="group_search" name="group_search" action="/search" method="get">
				<div class="ttc">
					<input name="q" class="j a_search_text input_search greyinput" type="text" size="36" maxlength="36" value>
				</div>
				<div class="tc">
					<input class="butt" name="group_submit" type="submit" value="搜索群组">	
					<input name="topic_submit" class="butt" type="submit" value="搜索发言">
				</div>
			</form>
		</div>
		<div class="ex2">
			<span></span>
		</div>
	</div>
</div>
-->

<p class="pl2">
&gt;
<a href="/group/recommend_groups/">群组推荐</a>
</p>
<p class="pl2">
&gt;
<a href="/group/new_group/">申请创建群组</a>
</p>

{% endblock %}